package com.enjoyor.soa.traffic.rest.efoms.dubbo.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.dto.efoms.TemplateDto;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboTemplateService;
import com.enjoyor.soa.traffic.rest.efoms.dubbo.IAATemplateConsumeService;
import com.enjoyor.soa.traffic.util.pojo.Page;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@Component
public class AATemplateConsumeService implements IAATemplateConsumeService {

    @Reference(version = "1.0.0", timeout = 10000)
    private IDubboTemplateService dubboTemplateService;

    public ResultPojo select(String id) {
        return dubboTemplateService.select(id);
    }

    @Override
    public ResultPojo selectList(String id, String type, String content) {
        return dubboTemplateService.selectList(id, type, content);
    }
    
    @SuppressWarnings("rawtypes")
    @Override
    public ResultPojo selectPage(Page page, String timeStart, String timeEnd) {
        return dubboTemplateService.selectPage(page, timeStart, timeEnd);
    }
    
    public ResultPojo delete(String id, String userName) {
        return dubboTemplateService.delete(id, userName);
    }

    @Override
    public ResultPojo check(String token, String sysKey) {
        return dubboTemplateService.check(token, sysKey);
    }

	@Override
	public ResultPojo callback(String listenId) {
		return null;
	}

	@Override
	public ResultPojo insert(TemplateDto template, String personName) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ResultPojo edit(TemplateDto template, String personName) {
		// TODO Auto-generated method stub
		return null;
	}

}
